package com.chang.order.feign;

import com.chang.common.utils.R;
import com.chang.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("member")
public interface MemberFeignService {

    // 获取用户地址列表
    @GetMapping("member/memberreceiveaddress/{memberId}/getAddresses")
    List<MemberAddressVo> getAddressList(@PathVariable("memberId") Long memberId);

    @GetMapping("member/memberreceiveaddress/info/{addrId}")
    R getAddress(@PathVariable("addrId") Long addrId);
}
